{% extends "moko_base.html" %}
{% block head %}
  <script type="text/javascript">
  //<![CDATA[
  //]]>
  </script>
{% endblock %}
{% block body %}
	<h1>MOKO Top Girl</h1>
	<h2>{{count}}/{{model_count}}</h2>
	{% if pages %}
	<div class="pager">
		<ul>
		{% for p in pages %}
		{% ifequal p page %}
		<li class="cpage">{{p}}</li>
		{% else %}
		<li><a href="{{request.path}}?page={{p}}">{{p}}</a></li>
		{% endifequal %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}	
	{% if models %}
	<div id="topgirlgallery">
		<ul class="gallery">
		{% for model in models %}
		<li class="model">
			<a href="/model/{{ model.username}}{% if is_admin %}?action=update{% endif %}">
				<img class="avatar" src="{{host_img}}/{{model.username}}/{{model.avatar|imagename}}" alt="{{model.name}}">
			</a>
			<div class="name">&gt;<a class="mokolink" title="mobile top girl:{{model.name}}" href="/model/{{ model.username}}{% if is_admin %}?action=update{% endif %}">{{model.name}}</a>
			{% if is_admin %}/{{model.get_album_count}}{% ifnotequal model.get_photo_count model.get_moko_photo_count %}<span class='warn'>[{{model.get_photo_count}}|{{model.get_moko_photo_count}}]</span>{% endifnotequal %}{% endif %}</div>
		</li>
		{% endfor %}
	</div>
	{% endif %}
	{% if pages %}
	<div class="pager">
		<ul>
		{% for p in pages %}
		{% ifequal p page %}
		<li class="cpage">{{p}}</li>
		{% else %}
		<li><a href="{{request.path}}?page={{p}}">{{p}}</a></li>
		{% endifequal %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}	
{% endblock %}
{% block footer %}
{% endblock %}